package com.web.controller;

import com.web.common.Result;
import com.web.entity.Student;
import com.web.entity.UserInfo;
import com.web.service.StudentService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"课程操作接口"})
@RestController
@RequestMapping("/course")
public class CourseController {

    @Autowired
    private StudentService studentService;

    @RequestMapping("student")
    public Object studentCourse() {
        Student student = studentService.queryStuById(18120101);
        return Result.success(student);
    }

}
